import pyautogui

pyautogui.moveTo(600, 250)
x=250
while x < 950:
    pyautogui.moveTo(1300,x,duration=5)
    pyautogui.moveTo(600,x)
    x+=10
